//
//  Order.m
//  SeaMelonSeeds_Counselor
//
//  Created by 尤振宇 on 2017/7/17.
//  Copyright © 2017年 杨笑. All rights reserved.
//

#import "Order.h"
#import "JHMacros.h"


@implementation WKScale
-(int)id
{
    return self.gauge_id;
}

@end

@implementation OrderService

@end

@implementation Order

-(void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"description"]) {
        self.problemDescription = value;
    }else if ([key isEqualToString:@"timeout"]){
        self.is_timeout = YES;
    }else{
        [super setValue:value forKey:key];
    }
}

-(BOOL)is_operationOrder
{
    if (!self.refused_at && !self.accepted_at) {
        return NO;
    }else{
        return YES;
    }
}

-(NSString *)content
{
    return self.problemDescription;
}

-(float)cellHeight
{
    return (self.spread ? self.content_H : 17);
}

@end
